import turtle
import random
turtle.left(40)
m = 0
while m < 10:
    n=0
    turtle.colormode(255)
    r=random.randint(0,255)
    g=random.randint(0,255)
    b=random.randint(0,255)
    turtle.fillcolor(r,g,b)
    turtle.begin_fill()
    while n<3:
        turtle.forward(100)
        turtle.left(120)
        n+=1
    turtle.end_fill()
    m+=1
    turtle.left(m*2)
turtle.done()